package com.ewzj.bigdata.mvp.model.rspbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author:zhangjing
 * 作用:
 * return:
 */

public class VideoBean implements Parcelable {


    /**
     * groupId : 6
     * id : 512
     * go_url : http://ysjh5.dev.ewuzhijia.com/video/512
     * title : 油条自己做，好吃又放心！
     * tags :
     * thumb : http://image.pearvideo.com/cont/20170114/cont-1024980-10102656.jpg
     * video : http://video.pearvideo.com/mp4/third/20170114/cont-1024980-10145803-hd.mp4
     * type :
     * duration : 02:27
     * is_collect : 0
     */

    private String groupId;
    private String id;
    private String go_url;
    private String title;
    private String tags;
    private String thumb;
    private String video;
    private String type;
    private String duration;
    private String sources;
    private int  is_collect;
    private int is_self;
    private String three_url;
    private String summary;
    private String create_time;

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getSources() {
        return sources;
    }

    public void setSources(String sources) {
        this.sources = sources;
    }

    public static Creator<VideoBean> getCREATOR() {
        return CREATOR;
    }

    public int getIs_self() {
        return is_self;
    }

    public void setIs_self(int is_self) {
        this.is_self = is_self;
    }

    public String getThree_url() {
        return three_url;
    }

    public void setThree_url(String three_url) {
        this.three_url = three_url;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGo_url() {
        return go_url;
    }

    public void setGo_url(String go_url) {
        this.go_url = go_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public int getIs_collect() {
        return is_collect;
    }

    public void setIs_collect(int is_collect) {
        this.is_collect = is_collect;
    }

    public VideoBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.groupId);
        dest.writeString(this.id);
        dest.writeString(this.go_url);
        dest.writeString(this.title);
        dest.writeString(this.tags);
        dest.writeString(this.thumb);
        dest.writeString(this.video);
        dest.writeString(this.type);
        dest.writeString(this.duration);
        dest.writeString(this.sources);
        dest.writeInt(this.is_collect);
        dest.writeInt(this.is_self);
        dest.writeString(this.three_url);
        dest.writeString(this.summary);
        dest.writeString(this.create_time);
    }

    protected VideoBean(Parcel in) {
        this.groupId = in.readString();
        this.id = in.readString();
        this.go_url = in.readString();
        this.title = in.readString();
        this.tags = in.readString();
        this.thumb = in.readString();
        this.video = in.readString();
        this.type = in.readString();
        this.duration = in.readString();
        this.sources = in.readString();
        this.is_collect = in.readInt();
        this.is_self = in.readInt();
        this.three_url = in.readString();
        this.summary = in.readString();
        this.create_time = in.readString();
    }

    public static final Creator<VideoBean> CREATOR = new Creator<VideoBean>() {
        @Override
        public VideoBean createFromParcel(Parcel source) {
            return new VideoBean(source);
        }

        @Override
        public VideoBean[] newArray(int size) {
            return new VideoBean[size];
        }
    };
}
